package com.ifengchao.dao;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.orm.ibatis.SqlMapClientTemplate;
import org.springframework.stereotype.Repository;

@Repository
public class IBatisBaseDao1 {
	protected Logger logger = Logger.getLogger(getClass());

	//@Qualifier("sqlMapClientTemplate1"),有多个类似的bean,找到具体的bean;qualifier和autowired配合使用
	@Autowired
	@Qualifier("sqlMapClientTemplate1")
	public SqlMapClientTemplate sqlMapClientTemplate;

	public SqlMapClientTemplate getSqlMapClientTemplate() {
		return sqlMapClientTemplate;
	}

	public void setSqlMapClientTemplate(SqlMapClientTemplate sqlMapClientTemplate) {
		this.sqlMapClientTemplate = sqlMapClientTemplate;
	}

}
